package com.gzxx.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gzxx.domain.base.BaseEntity;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author MAX
 * @date 2020/7/24 9:11 上午
 * 系统菜单实体
 */

@Getter
@ToString(callSuper = true)
@TableName("sys_menu")
public class SysMenu extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -1623627617017302952L;

    private String menuName;
    private Long parentId;
    private String url;
    private Integer orderNum;
    private Integer menuType;
    private String perms;
    private String icon;

    @Builder
    private SysMenu(String menuName, Long parentId, String url, Integer orderNum,
                    Integer menuType, String perms, String icon, Long id,
                    Long createBy, Long updateBy, Integer revision, String idempotent) {
        super(id, createBy, updateBy, revision, idempotent);

        this.menuName = menuName;
        this.parentId = parentId;
        this.url = url;
        this.orderNum = orderNum;
        this.menuType = menuType;
        this.perms = perms;
        this.icon = icon;
    }

}
